package com.tarena.lbs.marketing.mapper;

import com.tarena.lbs.pojo.marketing.dos.MarketingActivityDO;
import com.tarena.lbs.pojo.marketing.query.MarketingActivityQuery;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ActivityMapper {

    @Select("select * from tarena_lbs_marketing.marketing_activity where business_id=#{businessId}")
    List<MarketingActivityDO> selectActivityByPage(MarketingActivityQuery query);

    void insert(MarketingActivityDO mDo);

    @Select("select * from tarena_lbs_marketing.marketing_activity where id=#{id}")
    MarketingActivityDO selectById(Integer id);
}
